<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8">
    <link href="/medias/resource/css/weather.css" rel="stylesheet" type="text/css">
</head>
<body>

    <div  class="weather_content body-balck">
        <div class="window-wrapper">
            <div class="window-slide" >
                <img src="/medias/resource/images/load.gif">
                <a href="/wechat/pic/" class="close"></a>
            </div>
        </div>
    </div>
    <script src="/medias/resource/js/jquery-1.10.1.min.js"></script>
     <script>

      
        $(function(){
            $('.window-slide img').attr("src",getPar("r"));
            $('.close').attr('href','/wechat/pic/?type='+getPar('type') + "&date="+getPar('date'))
        });

        function getPar(par){
            //获取当前URL
            var local_url = document.location.href; 
            console.log(local_url);
            //获取要取得的get参数位置
            var get = local_url.indexOf(par +"=");
            if(get == -1){
                return false;   
            }   
            //截取字符串
            var get_par = local_url.slice(par.length + get + 1);    
            //判断截取后的字符串是否还有其他get参数
            var nextPar = get_par.indexOf("&");
            if(nextPar != -1){
                get_par = get_par.slice(0, nextPar);
            }
            return get_par;
        }
 
     </script>
</body>